//loads the arTags array with data
function loadMockupData() {
    var aTag;
    var aWebpage;

    //tag1
    aTag=new Object();
    aTag.tag="toto";
    aTag.arWebpages=new Array();

    aWebpage=new Object();
    aWebpage.url="http://localhost";
    aWebpage.title="this is localhost";

    aTag.arWebpages[0]=aWebpage;

    aWebpage=new Object();
    aWebpage.url="http://localhost2";
    aWebpage.title="this is localhost2";

    aTag.arWebpages[1]=aWebpage;

    arTags[0]=aTag;
    
    //tag2
    aTag=new Object();
    aTag.tag="tata";
    aTag.arWebpages=new Array();

    aWebpage=new Object();
    aWebpage.url="http://localhost";
    aWebpage.title="this is localhost too!";

    aTag.arWebpages[0]=aWebpage;
    
    arTags[1]=aTag;
    
    console.log("mockup-data.js loadMockupData : arTags loaded");
}

function mockupData(keyword) {
    alert(keyword);
    loadMockupData();
    
    buildTree();
}



